<div id="content">
    <h2>My Companies</h2>
    <div class="searchForm">
        <?=form_open('/student/company_search');?>
        <?=form_input('searchTerm');?>
        <?=form_submit('', 'Search');?>
        <?=form_close();?>
    </div>
    <table class="companies">
        <tr><th>Company Name</th><th>Location</th><th>Industry</th></tr>
        <?php if (isset($companies)): ?>
            <?php foreach ($companies as $company): ?>
                <td><a href="/student/company_details/<?=$company['company_id']; ?>"><?=ucwords($company['company_name']);?></a></td>
                <td><?=ucwords($company['city'] . ', ' . $company['state']);?></td>                    
                <td><?=$company['industry'];?></td>
            </tr><?php endforeach; ?>
        <?php endif; ?>
    </table>
</div> <!-- #content -->